using MicroMsg.Resource.@string;
using System;
using System.Windows.Media;
namespace MicroMsg.UI.UserContrl
{
	public class FMessageValidInfo : IFmessageInfo
	{
		public string fromusername;
		public string fromnickname;
		public string fullpy;
		public string shortpy;
		public string content;
		public int imagestatus;
		public int scene;
		public string mobileidentify;
		public long qqnum;
		public string qqnickname;
		public string qqremark;
		public string sign;
		public int int_0;
		public string city;
		public string province;
		public int nAlbumFlag;
		public int nAlbumStyle;
		public string strAlbumbgimgid;
		public int nSnsFlag;
		public string strSnsbgimgid;
		public ulong nSnsBGObjectID;
		public string Title
		{
			get
			{
				string result;
				switch (this.scene)
				{
				case 18:
					result = strings.FMsgLbsTitle;
					return result;
				case 22:
				case 23:
				case 24:
				case 26:
				case 27:
				case 28:
				case 29:
					result = strings.FMsgShakeInfo;
					return result;
				case 25:
					result = strings.FMsgBottleInfo;
					return result;
				case 30:
					result = strings.FMsgQRCodeInfo;
					return result;
				case 31:
					result = "facebook好友";
					return result;
				}
				result = strings.FMsgValidTitle;
				return result;
			}
		}
		public string NickName
		{
			get
			{
				if (string.IsNullOrEmpty(this.fromnickname))
				{
					return this.fromusername;
				}
				return this.fromnickname;
			}
		}
		public string UserInfo
		{
			get
			{
				string text = null;
				if (!string.IsNullOrEmpty(this.content))
				{
					text = this.content;
				}
				if (string.IsNullOrEmpty(text))
				{
					text = FMessageHelper.getUsrInfoContent(this.fromusername, this.scene);
				}
				return text;
			}
		}
		public string UserName
		{
			get
			{
				if (string.IsNullOrEmpty(this.fromusername))
				{
					return "";
				}
				return this.fromusername;
			}
		}
		public string ConversationInfo
		{
			get
			{
				string nickName = this.NickName;
				string text;
				switch (this.scene)
				{
				case 18:
					text = strings.FMsgConvLbsInfo;
					goto IL_79;
				case 22:
				case 23:
				case 24:
				case 26:
				case 27:
				case 28:
				case 29:
					text = strings.FMsgConvShakeInfo;
					goto IL_79;
				case 25:
					text = strings.FMsgConvBottleInfo;
					goto IL_79;
				case 30:
					text = strings.FMsgConvQRCodeInfo;
					goto IL_79;
				}
				text = strings.FMsgValidInfo;
				IL_79:
				return string.Format(text, nickName);
			}
		}
		public ImageSource FlagImg
		{
			get
			{
				switch (this.scene)
				{
				case 18:
					return new ImageSourceConverter().ConvertFromString("/Resource/Img/Chat/ffmsg/lbs.png") as ImageSource;
				case 22:
				case 23:
				case 24:
				case 26:
				case 27:
				case 28:
				case 29:
					return new ImageSourceConverter().ConvertFromString("/Resource/Img/Chat/ffmsg/shake.png") as ImageSource;
				case 25:
					return new ImageSourceConverter().ConvertFromString("/Resource/Img/Chat/ffmsg/bottle.png") as ImageSource;
				case 30:
					return new ImageSourceConverter().ConvertFromString("/Resource/Img/Chat/ffmsg/qrcode.png") as ImageSource;
				case 31:
					return new ImageSourceConverter().ConvertFromString("/Resource/Img/Plugin/FaceBook/fbrecomend.png") as ImageSource;
				}
				return new ImageSourceConverter().ConvertFromString("/Resource/Img/Chat/ffmsg/friends.png") as ImageSource;
			}
		}
	}
}
